package com.example.demo.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 课程信息表实体类
 * 对应数据库表 `courses`
 */
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 课程ID (course_id)
     */
    private String courseId;

    /**
     * 课程名称 (course_name)
     */
    private String courseName;

    /**
     * 课程描述 (description)
     */
    private String description;

    /**
     * 创建时间 (created_at)
     */
    private LocalDateTime createdAt;

    /**
     * 关联学期ID (semester_id)
     */
    private Integer semesterId;

    /**
     * 教师ID (teacher_id)
     */
    private String teacherId;

    /**
     * 总课时 (total_lessons)
     */
    private Integer totalLessons;

    /**
     * 课程照片 (png)
     */
    private String png;

    // --- Getter 和 Setter 方法 ---
    // (在实际项目中，推荐使用 Lombok 的 @Data 简化)

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getSemesterId() {
        return semesterId;
    }

    public void setSemesterId(Integer semesterId) {
        this.semesterId = semesterId;
    }

    public String getTeacherId() {
        return teacherId;
    }


    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public Integer getTotalLessons() {
        return totalLessons;
    }

    public void setTotalLessons(Integer totalLessons) {
        this.totalLessons = totalLessons;
    }

    public String getPng() {
        return png;
    }

    public void setPng(String png) {
        this.png = png;
    }
}